//
//  ZYCTeaLeaveApproveView.h
//  ZDSC
//
//  Created by 张威 on 2021/10/26.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN



// 类型
typedef NS_ENUM(NSInteger, ZYCTeaLeaveApproveType) {
    ZYCTeaLeaveApproveTypeRevoke = 0,//审批撤销
    ZYCTeaLeaveApproveTypeReject // 上传图片
};

@protocol ZYCTeaLeaveApproveViewDelegate <NSObject>

- (void)teaLeaveApproveViewWithType:(ZYCTeaLeaveApproveType)type;

@end

@interface ZYCTeaLeaveApproveView : UIView


@property (nonatomic, assign)ZYCTeaLeaveApproveType type;

@property (nonatomic, weak) id <ZYCTeaLeaveApproveViewDelegate> delegate;


@property (nonatomic, strong, readonly) NSString * cancleReason;

- (instancetype)initWithFrame:(CGRect)frame type:(ZYCTeaLeaveApproveType)type;

@end

NS_ASSUME_NONNULL_END
